#ifndef HAM_CONTROL_H
#define HAM_CONTROL_H

#include "../Core/Main/Module.h"
#include "../Widgets/WdgControlOptions.h"
#include "ui_Control_Main.h"

namespace ham
{
	class Application;

	class Control
		: public Module, public Ui::Control_Main
	{
		Q_OBJECT

	public:
		Control(Application*);
		~Control(void);

		QString	getModuleName() const;
		QString getDisplayName() const;
		bool isInit() const;

		QWidget* getOptionsWdg(QWidget*) const;
		QList<QMenu*> getMenus(QWidget*) const;
		QList<QPair<QString, QWidget*>> getMainWidgets(QWidget*);

	private:
		void init(Application*);
		WdgControlOptions* initOptions(Application*);

		WdgControlOptions* m_options;
	};
}

#endif // HAM_LOGBOOK_H